{template 'phpcms','header'}
<?php
	$imgarr = array(59=>8,60=>16,61=>10,66=>8);
?>
<div class="w100 mt50 mb50">
    	<div class="w1000 itemS bgA">
        	<h1 class="itemB">{$catname}</h1>
            <div class="itemBox">这里是下划线</div>
        </div>
        <div class="w1000">
        	<img src="/upload/{$imgarr[$catid]}.jpg" />
        </div>
    	<div class="w1000 bgA">
            <div class="aboutP">{block1("catid_$catid", 1)}</div>
        </div>
        {if $catid==60}
        	<div class="w1000 bgA">
        	<h1 class="itemB">在线预约</h1>
            <div class="itemBox">这里是下划线</div>
        </div>
    	<div class="w1000 itemS bgA" style="padding-bottom:70px;">
        <script language="JavaScript" src="images/js/validator.js"></script>
        <form name="myform" action="formguide/index.php" method="post" enctype="multipart/form-data" onsubmit="return checkfrom();">
    	  <table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
       	    <tr>
       	      <td height="20" align="left" valign="top">姓名*</td>
       	      <td align="left">&nbsp;</td>
       	      <td align="left">需求*</td>
   	        </tr>
       	    <tr>
        	      <td align="left"><input class="contactA bgD" type="text" name="info[name]" id="name" require="true" datatype="limit" min="1" max="0" msg='请输入'/></td>
        	      <td width="40" align="left">&nbsp;</td>
        	      <td rowspan="7" align="left"><textarea class="contactB bgD" name="info[xq]" id="xq" cols="45" rows="5"></textarea></td>
   	        </tr>
       	    <tr>
       	      <td height="20" align="left" valign="top">&nbsp;</td>
       	      <td height="20" align="left" valign="top">&nbsp;</td>
   	        </tr>
       	    <tr>
       	      <td height="20" align="left" valign="top">邮件*</td>
       	      <td align="left">&nbsp;</td>
   	        </tr>
       	    <tr>
       	      <td align="left"><input class="contactA bgD" type="text" name="info[email]" id="email" require="true" datatype="limit" min="1" max="0" msg='请输入'/></td>
       	      <td align="left">&nbsp;</td>
   	        </tr>
       	    <tr>
       	      <td height="20" align="left" valign="top">&nbsp;</td>
       	      <td height="20" align="left" valign="top">&nbsp;</td>
   	        </tr>
       	    <tr>
       	      <td height="20" align="left" valign="top">电话*</td>
       	      <td align="left">&nbsp;</td>
   	        </tr>
       	    <tr>
       	      <td align="left"><input class="contactA bgD" type="text" name="info[tel]" id="tel" require="true" datatype="limit" min="1" max="0" msg='请输入'/></td>
       	      <td align="left">&nbsp;</td>
   	        </tr>
       	    <tr>
       	      <td height="20" align="left" valign="top">&nbsp;</td>
       	      <td height="20" align="left" valign="top">&nbsp;</td>
       	      <td height="20" align="left" valign="top">&nbsp;</td>
   	        </tr>
       	    <tr>
       	      <td height="20" align="left" valign="top">可预约时间*</td>
       	      <td align="left">&nbsp;</td>
       	      <td align="left">&nbsp;</td>
   	        </tr>
       	    <tr>
       	      <td align="left"><input class="contactA bgD" type="text" name="info[time]" id="time" require="true" datatype="limit" min="1" max="0" msg='请输入'/></td>
       	      <td align="left">&nbsp;</td>
              <input type="hidden" name="dataid" value="" />
       		  <input type="hidden" name="formid" value="1" />
       	      <td align="left"><input class="contactC bgC" type="submit" name="dosubmit" id="button" value="提交 (我们会很重视您的意见和建议)" /></td>
   	        </tr>
   	      </table>
          </form>
    	</div>
        <script LANGUAGE="javascript">
		<!--
		function checkfrom()
		{
			if($('#name').val()=='')
			{
				alert('请输入姓名');
				return false;
			}
			if($('#email').val()=='')
			{
				alert('请输入邮件');
				return false;
			}
			if($('#tel').val()=='')
			{
				alert('请输入电话');
				return false;
			}
			if($('#time').val()=='')
			{
				alert('请输入可预约时间');
				return false;
			}
			if($('#xq').val()=='')
			{
				alert('请输入需求');
				return false;
			}
			return true;
		}
		//-->
		</script>
        {/if}
	</div>
{template 'phpcms','footer'}